home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / MATHS / RLAB / RLAB125.ZIP / !RLaB / help_ai / isnan < prev    next >
Text File  |  1995-02-18  |  603b  |  26 lines

  1. isnan:
  2.  
  3. Syntax: isnan ( A )
  4.  
  5. Description:
  6.  
  7.     isnan returns TRUE (1) if A is a NaN (Not A Number). If A is a
  8.     vector or a matrix the test is performed element-by-element,
  9.     and a matrix the same size as A is returned.
  10.  
  11.     NaNs can be create by the 0/0 operation on most computers.
  12.  
  13. Example:
  14.  
  15.         > a = [1, 2, 3; 4, 5, nan(); 7, 8, 9]
  16.          a =
  17.                 1          2          3  
  18.                 4          5  nan0x80000000  
  19.                 7          8          9  
  20.         > isnan (a)
  21.                 0          0          0  
  22.                 0          0          1  
  23.                 0          0          0  
  24.  
  25. See Also: inf, isinf, finite, nan
  26.